﻿$(document).ready(function () {

    $("p.insert_product").click(function () {

        location.href = "/Product/insert";
    });

});
function deleteclick(element) {
    var id = $(element).attr("index");
    CallAjaxDelete(id, $(element).parent("td").parent("tr"));
}
function CallAjaxDelete(param, element) {
    $.post("/Product/delete", { id: param },
       function (e) {
           if (e.status = "success") {
               $(element).remove();

           }

       });
}